import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty } from "class-validator";

export class CreateRoleDto {
    @ApiProperty({
        description: '角色名称',
    })
    @IsNotEmpty()
    name: string;
}



export class AssignRoleDto {
    @ApiProperty({
        description: '用户id',
    })
    @IsNotEmpty()
    userId: string;

    @ApiProperty({
        description: '角色id',
    })
    @IsNotEmpty()
    roleId: string;
}